/*     */ package nc.bs.gl.pfxx;
/*     */ 
/*     */ import java.rmi.RemoteException;
/*     */ import java.sql.SQLException;
/*     */ import java.util.ArrayList;
/*     */ import java.util.HashMap;
/*     */ import java.util.HashSet;
/*     */ import java.util.List;
/*     */ import java.util.Map;
/*     */ import java.util.Set;
/*     */ import java.util.Vector;
/*     */ import javax.naming.NamingException;
/*     */ import nc.bs.framework.common.InvocationInfoProxy;
/*     */ import nc.bs.framework.common.NCLocator;
/*     */ import nc.bs.gl.vouchertools.DapsystemDMO;
/*     */ import nc.bs.logging.Logger;
/*     */ import nc.bs.ml.NCLangResOnserver;
/*     */ import nc.bs.pfxx.ISwapContext;
/*     */ import nc.bs.pub.SystemException;
/*     */ import nc.itf.gl.pub.IFreevaluePub;
/*     */ import nc.itf.gl.voucher.IVoucher;
/*     */ import nc.pub.tools.bdadapter.AccountingBookAcc;
/*     */ import nc.vo.bd.account.AccAssVO;
/*     */ import nc.vo.bd.account.AccountVO;
/*     */ import nc.vo.fipub.freevalue.Module;
/*     */ import nc.vo.fipub.utils.StrTools;
/*     */ import nc.vo.gateway60.accountbook.GlOrgUtils;
/*     */ import nc.vo.gateway60.itfs.AccountUtilGL;
/*     */ import nc.vo.gl.cashflowcase.CashflowcaseVO;
/*     */ import nc.vo.gl.pubvoucher.DetailVO;
/*     */ import nc.vo.gl.pubvoucher.VoucherModflagTool;
/*     */ import nc.vo.gl.pubvoucher.VoucherVO;
/*     */ import nc.vo.gl.vatdetail.VatDetailVO;
/*     */ import nc.vo.gl.vouchertools.DapsystemVO;
/*     */ import nc.vo.glcom.ass.AssVO;
/*     */ import nc.vo.ml.NCLangRes4VoTransl;
/*     */ import nc.vo.org.AccountingBookVO;
/*     */ import nc.vo.pfxx.auxiliary.AggxsysregisterVO;
/*     */ import nc.vo.pfxx.auxiliary.AuxiregisterVO;
/*     */ import nc.vo.pfxx.idcontrast.IDContrastVO;
/*     */ import nc.vo.pfxx.util.PfxxUtils;
/*     */ import nc.vo.pub.BusinessException;
/*     */ import nc.vo.pub.lang.UFBoolean;
/*     */ import nc.vo.pub.lang.UFDateTime;
/*     */ import nc.vo.pub.lang.UFDouble;
/*     */ import nccloud.commons.lang.StringUtils;
/*     */ 
/*     */ public class GLPluginUtils {
/*     */   static void setGlorgParameter(VoucherVO vouchervo) throws BusinessException {
/*  66 */     String defaultglorgbook = vouchervo.getPk_accountingbook();
/*  67 */     String pk_corp = vouchervo.getPk_org();
/*  68 */     if (pk_corp == null || pk_corp.length() == 0) {
/*  69 */       pk_corp = vouchervo.getPk_org();
/*  70 */       vouchervo.setPk_org(pk_corp);
/*     */     } 
/*  72 */     String pk_glorgbook = vouchervo.getPk_accountingbook();
/*  74 */     if (pk_glorgbook == null && pk_corp != null) {
/*  76 */       setVoByPkGlorgbook(vouchervo, defaultglorgbook);
/*  79 */     } else if (pk_glorgbook != null) {
/*  80 */       setVoByPkGlorgbook(vouchervo, pk_glorgbook);
/*     */     } 
/*     */   }
/*     */   
/*     */   static void setVoByPkGlorgbook(VoucherVO vo, String pk_glorgbook) {
/*  92 */     vo.setPk_accountingbook(pk_glorgbook);
/*  93 */     AccountingBookVO glorgbookvo = null;
/*     */     try {
/*  95 */       glorgbookvo = AccountingBookAcc.getAccountingBookVOByPrimaryKey(pk_glorgbook);
/*  96 */     } catch (BusinessException e) {
/*  97 */       Logger.error("", e);
/*  98 */       Logger.error("根据主体帐簿" + pk_glorgbook + "无法取得主体帐簿相关信息..");
/*     */     } 
/* 100 */     if (glorgbookvo != null) {
/* 101 */       String pk_glbook = glorgbookvo.getPk_setofbook();
/* 102 */       vo.setPk_setofbook(pk_glbook);
/* 103 */       String pk_glorg = glorgbookvo.getPk_accountingbook();
/* 104 */       vo.setPk_accountingbook(pk_glorg);
/*     */     } 
/*     */   }
/*     */   
/*     */   static void setCashflowParameter(VoucherVO vouchervo) throws BusinessException {
/* 115 */     DetailVO[] detailvos = vouchervo.getDetails();
/* 116 */     for (int i = 0; i < detailvos.length; i++) {
/* 117 */       CashflowcaseVO[] cashflowcasevo = detailvos[i].getCashFlow();
/* 119 */       if (cashflowcasevo != null)
/* 120 */         for (int j = 0; j < cashflowcasevo.length; j++) {
/* 121 */           cashflowcasevo[j].setPk_corp(vouchervo.getPk_org());
/* 122 */           cashflowcasevo[j].setPk_glorgbook(vouchervo.getPk_accountingbook());
/* 123 */           cashflowcasevo[j].setPk_unit(detailvos[i].getPk_unit());
/* 124 */           cashflowcasevo[j].setM_pk_currtype(detailvos[i].getPk_currtype());
/* 126 */           AccountVO[] accVO = AccountUtilGL.queryAccountVosByPks(new String[] { detailvos[i]
/* 127 */                 .getPk_accasoa() }, vouchervo.getPrepareddate().toLocalString());
/* 128 */           if (accVO != null && accVO.length == 1)
/* 129 */             cashflowcasevo[j].setCashflowFlag(accVO[0].getBalanorient()); 
/*     */         }  
/*     */     } 
/*     */   }
/*     */   
/*     */   static boolean checkConfigItem(String flag) {
/* 142 */     if (flag.length() != 24)
/* 143 */       return false; 
/* 145 */     for (int i = 0; i < flag.length(); i++) {
/* 146 */       if (flag.charAt(i) != 'Y' && flag.charAt(i) != 'N')
/* 147 */         return false; 
/*     */     } 
/* 150 */     return true;
/*     */   }
/*     */   
/*     */   static String getVoucherNoByPK(String voucherpk) throws Exception {
/* 159 */     String no = null;
/*     */     try {
/* 161 */       IVoucher voucherbo = (IVoucher)NCLocator.getInstance().lookup(IVoucher.class.getName());
/* 163 */       VoucherVO[] vvos = voucherbo.queryByPks(new String[] { voucherpk });
/* 164 */       if (vvos != null && vvos.length > 0)
/* 165 */         no = vvos[0].getNo().toString(); 
/* 167 */     } catch (Exception e) {
/* 168 */       Logger.error("", e);
/* 169 */       throw new Exception("" + e);
/*     */     } 
/* 172 */     return no;
/*     */   }
/*     */   
/*     */   public static VoucherVO findVoucherVOByVoucherPK(String key) throws RemoteException {
/* 188 */     VoucherVO vouchervo = null;
/*     */     try {
/* 190 */       IVoucher dmo = (IVoucher)NCLocator.getInstance().lookup(IVoucher.class.getName());
/* 192 */       vouchervo = dmo.findByPrimaryKey(key);
/* 193 */     } catch (Exception e) {
/* 194 */       throw new RemoteException("XsysregisterBean::findVoucherVOByVoucherPK(VoucherPK) Exception!", e);
/*     */     } 
/* 196 */     return vouchervo;
/*     */   }
/*     */   
/*     */   public static IDContrastVO[] cannotDelVoucherFromGL(String[] pk_vouchers) throws Exception {
/* 214 */     return null;
/*     */   }
/*     */   
/*     */   static String getConfigedFlag(String mksystem, AggxsysregisterVO xsysvo) throws Exception {
/* 223 */     String returnflag = null;
/* 225 */     AuxiregisterVO[] auxivos = (xsysvo == null) ? null : (AuxiregisterVO[])xsysvo.getChildrenVO();
/* 227 */     if (auxivos == null || auxivos.length < 1) {
/* 228 */       Logger.debug(">>>>>>>>>>>>>>>>> 没有配置按凭证类别和制单来源的辅助信息");
/* 229 */       return null;
/*     */     } 
/* 232 */     for (int i = 0; i < auxivos.length; i++) {
/* 234 */       if (auxivos[i].getAuxiregistername() == null || auxivos[i].getAuxiregistername().trim().length() < 1 || auxivos[i]
/* 235 */         .getAuxiregistervalue() == null || auxivos[i].getAuxiregistervalue().trim().length() < 1 || auxivos[i]
/* 236 */         .getAuxiregisterexpvalue() == null || auxivos[i].getAuxiregisterexpvalue().trim().length() < 1)
/* 237 */         throw new Exception(NCLangResOnserver.getInstance().getStrByID("pfxx", "UPPpfxx-000213")); 
/* 243 */       if ((auxivos[i].getAuxiregistername().equalsIgnoreCase(mksystem) || auxivos[i].getAuxiregistername()
/* 244 */         .equalsIgnoreCase("ALL")) && auxivos[i]
/* 245 */         .getAuxiregistervalue().equalsIgnoreCase("ALL")) {
/* 246 */         returnflag = auxivos[i].getAuxiregisterexpvalue().trim().toUpperCase();
/*     */         break;
/*     */       } 
/*     */     } 
/* 251 */     if (returnflag == null)
/* 252 */       throw new Exception(NCLangResOnserver.getInstance().getStrByID("pfxx", "UPPpfxx-000214")); 
/* 257 */     if (!checkConfigItem(returnflag))
/* 258 */       throw new Exception(NCLangRes4VoTransl.getNCLangRes().getStrByID("200220120409_0", "0200220120409-0015")); 
/* 260 */     return returnflag;
/*     */   }
/*     */   
/*     */   public static VoucherVO setVoucherDefault(Object vo, AggxsysregisterVO xsysvo, ISwapContext con) throws Exception {
/* 266 */     VoucherVO vouchervo = (VoucherVO)vo;
/* 269 */     setGlorgParameter(vouchervo);
/*     */     try {
/* 274 */       setCashflowParameter(vouchervo);
/* 275 */     } catch (Throwable e1) {
/* 276 */       Logger.error("", e1);
/* 277 */       Logger.info("现金流量表没有安装,无法处理现金流量信息.");
/*     */     } 
/* 279 */     IDContrastVO ufvo = new IDContrastVO();
/* 280 */     ufvo.setBill_type(con.getBilltype());
/* 281 */     ufvo.setFile_id(con.getDocID());
/* 282 */     String neweditflag = getConfigedFlag(vouchervo.getPk_system(), xsysvo);
/* 283 */     if (neweditflag == null)
/* 284 */       neweditflag = "YYYYYYYYYYYYYYYYYYYYYYYYYYYY"; 
/* 286 */     ufvo.setIsdelete(UFBoolean.valueOf(neweditflag.substring(0, 1)));
/* 288 */     if (vouchervo.getPk_voucher() != null)
/* 289 */       PfxxUtils.lookUpPFxxEJBService().deleteIDvsPKByDocPK(vouchervo.getPk_voucher()); 
/* 292 */     vouchervo.setUserData(ufvo);
/* 293 */     vouchervo.setAddclass("nc.bs.gl.pfxx.VoucherPlugin");
/* 294 */     vouchervo.setModifyclass("nc.bs.gl.pfxx.VoucherPlugin");
/* 295 */     vouchervo.setDeleteclass("nc.bs.gl.pfxx.VoucherPlugin");
/* 297 */     VoucherModflagTool.setVoucherModFlagForPfxx(vouchervo, neweditflag);
/* 298 */     vouchervo.setSignflag(UFBoolean.FALSE);
/* 299 */     vouchervo.setExplanation(vouchervo.getDetail(0).getExplanation().equals("") ? "aaa" : 
/* 300 */         vouchervo.getDetail(0).getExplanation());
/* 301 */     vouchervo.setCreationtime(new UFDateTime());
/* 302 */     if (vouchervo.getPk_group() == null)
/* 303 */       vouchervo.setPk_group(InvocationInfoProxy.getInstance().getGroupId()); 
/* 305 */     vouchervo.setSystemname(vouchervo.getPk_system());
/* 307 */     Logger.debug(">>>>>>>>>>>> 原始制单系统 ：" + vouchervo.getPk_system());
/* 308 */     if (vouchervo.getPk_system() != null && (vouchervo
/* 309 */       .getPk_system().equalsIgnoreCase("gl") || vouchervo.getPk_system().equalsIgnoreCase("U8GL") || vouchervo
/* 310 */       .getPk_system().equalsIgnoreCase("U8AP") || vouchervo.getPk_system().equalsIgnoreCase("U8AR") || vouchervo
/* 311 */       .getPk_system().equalsIgnoreCase("U8CA") || vouchervo.getPk_system().equalsIgnoreCase("U8CP") || vouchervo
/* 312 */       .getPk_system().equalsIgnoreCase("U8FA") || vouchervo.getPk_system().equalsIgnoreCase("U8FD") || vouchervo
/* 313 */       .getPk_system().equalsIgnoreCase("U8IA") || vouchervo.getPk_system().equalsIgnoreCase("U8NB") || vouchervo
/* 314 */       .getPk_system().equalsIgnoreCase("U8PM") || vouchervo.getPk_system().equalsIgnoreCase("U8WA") || vouchervo
/* 315 */       .getPk_system().equalsIgnoreCase("U8WH"))) {
/* 316 */       vouchervo.setPk_system("GL");
/* 317 */     } else if (vouchervo.getPk_system() != null) {
/* 318 */       DapsystemDMO dapDMO = new DapsystemDMO();
/* 319 */       DapsystemVO dap = dapDMO.findByPrimaryKey(vouchervo.getPk_system());
/* 320 */       if (dap == null)
/* 321 */         throw new BusinessException(NCLangRes4VoTransl.getNCLangRes().getStrByID("private20111017_0", "02002001-0195")); 
/* 323 */       vouchervo.setPk_system(dap.getPrimaryKey());
/*     */     } 
/* 325 */     Logger.debug(">>>>>>>>>>>> 制单系统 ：" + vouchervo.getPk_system());
/* 327 */     UFDouble m_totaldebit = new UFDouble(0);
/* 328 */     UFDouble m_totalcredit = new UFDouble(0);
/* 329 */     Vector<DetailVO> details = new Vector<>();
/* 330 */     for (int i = 0; i < vouchervo.getNumDetails(); i++) {
/* 331 */       DetailVO detail = vouchervo.getDetail(i);
/* 332 */       detail.setPk_org(vouchervo.getPk_org());
/* 333 */       detail.setDetailindex(Integer.valueOf(i + 1));
/* 334 */       if (detail.getPrice() == null)
/* 335 */         detail.setPrice(new UFDouble(0)); 
/* 337 */       if (detail.getExcrate2() == null)
/* 338 */         detail.setExcrate2(new UFDouble(0)); 
/* 340 */       if (detail.getDebitquantity() == null)
/* 341 */         detail.setDebitquantity(new UFDouble(0)); 
/* 343 */       if (detail.getDebitamount() == null)
/* 344 */         detail.setDebitamount(new UFDouble(0)); 
/* 346 */       if (detail.getLocaldebitamount() == null)
/* 347 */         detail.setLocaldebitamount(new UFDouble(0)); 
/* 349 */       if (detail.getCreditquantity() == null)
/* 350 */         detail.setCreditquantity(new UFDouble(0)); 
/* 352 */       if (detail.getCreditamount() == null)
/* 353 */         detail.setCreditamount(new UFDouble(0)); 
/* 355 */       if (detail.getLocalcreditamount() == null)
/* 356 */         detail.setLocalcreditamount(new UFDouble(0)); 
/* 359 */       if (detail.getPk_org() == null)
/* 360 */         detail.setPk_org(vouchervo.getPk_org()); 
/* 362 */       Logger.debug(">>>>>>>>>>>>> 获取辅助核算项数据");
/* 364 */       m_totalcredit = m_totalcredit.add(detail.getLocalcreditamount());
/* 365 */       m_totaldebit = m_totaldebit.add(detail.getLocaldebitamount());
/* 367 */       details.addElement(detail);
/* 370 */       if (!StringUtils.isEmpty(detail.getVerifydate()) && vouchervo.getPrepareddate() != null && detail.getVerifydate().compareTo(vouchervo.getPrepareddate().toString()) > 0)
/* 371 */         detail.setVerifydate(null); 
/* 373 */       Logger.debug(">>>>>>>>>>>>>>>>>> add entry...");
/*     */     } 
/* 375 */     vouchervo.setTotalcredit(m_totalcredit);
/* 376 */     vouchervo.setTotaldebit(m_totaldebit);
/* 377 */     vouchervo.setDetail(details);
/* 379 */     return vouchervo;
/*     */   }
/*     */   
/*     */   public static void defaultDataSet(VoucherVO vo, boolean isqichu, int voucherNum) throws BusinessException, SystemException, SQLException, NamingException {
/* 393 */     HashMap<String, String> versionMap = null;
/*     */     try {
/* 395 */       versionMap = GlOrgUtils.getNewVIDSByOrgIDSAndDate(new String[] { vo.getPk_org() }, vo.getPrepareddate());
/* 396 */     } catch (BusinessException e) {
/* 397 */       Logger.error(e.getMessage(), e);
/*     */     } 
/* 399 */     if (versionMap != null)
/* 400 */       vo.setPk_org_v(versionMap.get(vo.getPk_org())); 
/* 403 */     DetailVO[] details = vo.getDetails();
/* 404 */     Set<String> assoaSet = new HashSet<>();
/* 405 */     for (int i = 0; i < details.length; i++) {
/* 406 */       if (details[i].getPk_org() == null)
/* 407 */         details[i].setPk_org(vo.getPk_org()); 
/* 409 */       if (details[i].getPk_org_v() == null)
/* 410 */         details[i].setPk_org_v(vo.getPk_org_v()); 
/* 412 */       if (details[i].getPk_unit() == null)
/* 413 */         details[i].setPk_unit(vo.getPk_org()); 
/* 416 */       if (details[i].getPk_unit_v() == null)
/* 417 */         if (!StrTools.isEmptyStr(details[i].getPk_unit())) {
/*     */           try {
/* 419 */             versionMap = GlOrgUtils.getNewVIDSByOrgIDSAndDate(new String[] { details[i].getPk_unit() }, vo.getPrepareddate());
/* 420 */           } catch (BusinessException e) {
/* 421 */             Logger.error(e.getMessage(), e);
/*     */           } 
/* 423 */           if (versionMap != null)
/* 424 */             vo.setPk_org_v(versionMap.get(vo.getPk_org())); 
/* 426 */           details[i].setPk_unit_v(versionMap.get(details[i].getPk_unit()));
/*     */         } else {
/* 428 */           details[i].setPk_unit_v(vo.getPk_org_v());
/*     */         }  
/* 431 */       if (details[i].getPk_liabilitycenter_v() == null)
/* 432 */         if (!StrTools.isEmptyStr(details[i].getPk_liabilitycenter())) {
/*     */           try {
/* 434 */             versionMap = GlOrgUtils.getNewVIDSByOrgIDSAndDate(new String[] { details[i].getPk_liabilitycenter() }, vo.getPrepareddate());
/* 435 */           } catch (BusinessException e) {
/* 436 */             Logger.error(e.getMessage(), e);
/*     */           } 
/* 438 */           details[i].setPk_liabilitycenter_v(versionMap.get(details[i].getPk_liabilitycenter()));
/*     */         } else {
/* 440 */           details[i].setPk_liabilitycenter_v(null);
/*     */         }  
/* 443 */       if (details[i].getPk_group() == null)
/* 444 */         details[i].setPk_group(vo.getPk_group()); 
/* 447 */       details[i].setPrepareddate(vo.getPrepareddate());
/* 448 */       assoaSet.add(details[i].getPk_accasoa());
/* 450 */       VatDetailVO vatvo = details[i].getVatdetail();
/* 451 */       if (vatvo != null) {
/* 452 */         vatvo.setPk_unit(details[i].getPk_unit());
/* 453 */         vatvo.setPk_manager(vo.getPk_manager());
/* 454 */         vatvo.setDetailindex(Integer.valueOf(i));
/* 455 */         vatvo.setVoucherkind(vo.getVoucherkind().toString());
/* 456 */         vatvo.setPk_org(details[i].getPk_org());
/* 457 */         vatvo.setPrepareddate(vo.getPrepareddate());
/* 458 */         vatvo.setExplanation(details[i].getExplanation());
/* 459 */         vatvo.setVoucherno(vo.getNo());
/* 460 */         vatvo.setPk_accasoa(details[i].getPk_accasoa());
/* 461 */         vatvo.setPk_accountingbook(details[i].getPk_accountingbook());
/* 462 */         vatvo.setPk_group(details[i].getPk_group());
/*     */       } 
/*     */     } 
/* 468 */     if (details != null) {
/* 469 */       AccountVO[] accVOs = AccountUtilGL.queryAccountVosByPks(assoaSet.toArray(new String[0]), vo.getPrepareddate().toLocalString());
/* 470 */       Map<String, AccountVO> accMap = new HashMap<>();
/* 471 */       if (accVOs != null)
/* 472 */         for (AccountVO acc : accVOs) {
/* 473 */           if (acc != null)
/* 474 */             accMap.put(acc.getPk_accasoa(), acc); 
/*     */         }  
/* 478 */       for (int j = 0; j < details.length; j++) {
/* 479 */         AccountVO accVO = accMap.get(details[j].getPk_accasoa());
/* 480 */         if (accVO != null) {
/* 481 */           AccAssVO[] assvo = accVO.getAccass();
/* 483 */           AssVO[] ass = details[j].getAss();
/* 484 */           if (isqichu && ass == null && assvo != null)
/* 485 */             throw new BusinessException(getErrMessage(voucherNum, j + 1, NCLangRes4VoTransl.getNCLangRes().getStrByID("private20111017_0", "02002001-0196"))); 
/* 487 */           if (assvo == null && ass != null)
/* 488 */             throw new BusinessException(getErrMessage(voucherNum, j + 1, NCLangRes4VoTransl.getNCLangRes().getStrByID("private20111017_0", "02002001-0197"))); 
/* 492 */           boolean hasEmp = false;
/* 493 */           if (assvo != null && (ass == null || assvo.length > ass.length))
/* 494 */             for (int k = 0; k < assvo.length; k++) {
/* 495 */               if (assvo[k].getIsempty().booleanValue())
/* 496 */                 hasEmp = true; 
/*     */             }  
/* 500 */           if (!hasEmp && ((assvo == null && ass != null) || (assvo != null && ass != null && assvo.length != ass.length)))
/* 501 */             throw new BusinessException(getErrMessage(voucherNum, j + 1, NCLangRes4VoTransl.getNCLangRes().getStrByID("private20111017_0", "02002001-0198"))); 
/* 503 */           if (ass != null) {
/* 504 */             List<String> classidList = new ArrayList<>();
/*     */             int k;
/* 505 */             for (k = 0; k < ass.length; k++)
/* 506 */               classidList.add(assvo[k].getPk_entity()); 
/* 508 */             for (k = 0; k < ass.length; k++) {
/* 509 */               if (!hasEmp && !classidList.contains(ass[k].getPk_Checktype()))
/* 510 */                 throw new BusinessException(getErrMessage(voucherNum, j + 1, NCLangRes4VoTransl.getNCLangRes().getStrByID("private20111017_0", "02002001-0199"))); 
/*     */             } 
/* 513 */             List<AssVO> list = new ArrayList<>();
/* 514 */             for (AccAssVO accass : assvo) {
/* 515 */               boolean exist = false;
/* 516 */               AssVO assvo1 = null;
/* 517 */               for (AssVO asvo : ass) {
/* 518 */                 if (accass.getPk_entity().equals(asvo.getPk_Checktype())) {
/* 519 */                   exist = true;
/* 520 */                   assvo1 = asvo;
/*     */                   break;
/*     */                 } 
/*     */               } 
/* 524 */               if (exist) {
/* 525 */                 list.add(assvo1);
/*     */               } else {
/* 527 */                 AssVO assvoo = new AssVO();
/* 528 */                 assvoo.setPk_Checktype(accass.getPk_entity());
/* 529 */                 list.add(assvoo);
/*     */               } 
/*     */             } 
/* 532 */             ass = list.toArray(new AssVO[0]);
/* 534 */             IFreevaluePub freebo = (IFreevaluePub)NCLocator.getInstance().lookup(IFreevaluePub.class.getName());
/* 536 */             String assid = freebo.getAssID(ass, Boolean.TRUE, vo.getPk_group(), Module.GL);
/* 537 */             if (assid.equals(""))
/* 538 */               throw new BusinessException(getErrMessage(voucherNum, j + 1, NCLangResOnserver.getInstance().getStrByID("pfxx", "UPPpfxx-000222"))); 
/* 543 */             details[j].setAssid(assid);
/* 544 */             details[j].setAss(ass);
/*     */           } 
/*     */         } 
/*     */       } 
/*     */     } 
/*     */   }
/*     */   
/*     */   public static String getErrMessage(int voucherNum, int detailNum, String message) {
/* 553 */     String title = NCLangRes4VoTransl.getNCLangRes().getStrByID("private20111017_0", "02002001-0231", null, new String[] { String.valueOf(voucherNum), String.valueOf(detailNum) });
/* 555 */     return title + title;
/*     */   }
/*     */ }


/* Location:              E:\yonyou\homes\xxhome930\modules\gl\META-INF\lib\gl_voucher.jar!\nc\bs\gl\pfxx\GLPluginUtils.class
 * Java compiler version: 17 (61.0)
 * JD-Core Version:       1.1.3
 */